package com.dendi.controller;

import com.dendi.util.AesException;
import com.dendi.util.WeiChatUtil;
//import org.dom4j.DocumentException;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.InputStream;
import java.util.HashMap;
import java.util.Map;


@RestController
public class TestController {
	
	String token="dendi";
	

	@RequestMapping("getToken")
	public String init(HttpServletRequest req) throws Exception{
		return WeiChatUtil.getAccessToken();
	}
	

}

